home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
ViePratique
/
PersoApps Calendrier
/
calendrier.exe
/
{app}
/
Update
/
dbUpdateScript
Wrap
Text File
|
2014-08-19
|
32KB
|
489 lines
//---------------------------------------------------------------------------
//
// SCRIPT DE MISE A JOUR DE LA BASE DE DONNEES
//
//---------------------------------------------------------------------------
// ----------------------------------------
// CARNET D'ADRESSES (10/2013)
// ----------------------------------------
//CrΘation de la table "ADDRESS"
NotTableExist(ADDRESS)
SqlExe{CREATE TABLE [ADDRESS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Code] TEXT(128), [Civility] TEXT(128), [Name] TEXT(128), [ForeName] TEXT(128), [NickName] TEXT(128), [CompanyName] TEXT(128), [Address1] TEXT(128), [Address2] TEXT(128), [PostCode] TEXT(128), [City] TEXT(128), [State] TEXT(128), [Country] TEXT(128), [Nationality] TEXT(128), [Phone1] TEXT(128), [Phone2] TEXT(128), [Email1] TEXT(128), [Email2] TEXT(128), [Comment] MEMO, [Title] TEXT(128), [Department] TEXT(128), [Function] TEXT(128), [Office] TEXT(128), [Assistants] TEXT(256), [Fax] TEXT(128), [WebSite] TEXT(128), [Pro_TVA] TEXT(128), [Pro_SIREN] TEXT(128), [Pro_SIRET] TEXT(128), [Pro_RCS] TEXT(128), [Pro_NAF] TEXT(128), [Pro_Comment] MEMO, [Pro_Address1] TEXT(128), [Pro_Address2] TEXT(128), [Pro_PostCode] TEXT(128), [Pro_City] TEXT(128), [Pro_State] TEXT(128), [Pro_Country] TEXT(128), [Pro_Phone1] TEXT(128), [Pro_Phone2] TEXT(128), [Pro_Email1] TEXT(128), [Pro_Email2] TEXT(128), [Location] TEXT(128), [Img] BINARY, [Selected] BOOLEAN, [Misc01] TEXT(128), [Misc02] TEXT(128), [Misc03] TEXT(128), [Misc04] TEXT(128), [Misc05] TEXT(128), [Misc06] TEXT(128), [Misc07] TEXT(128), [Misc08] TEXT(128), [Misc09] TEXT(128), [Misc10] TEXT(128), [Misc11] MEMO, [Misc12] MEMO)}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Title] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Department] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Function] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Office] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_EventTitle] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc01] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc02] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc03] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc04] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc05] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc06] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc07] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc08] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc09] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Address_Misc10] MEMO}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc01] TEXT(128) DEFAULT Divers1}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc02] TEXT(128) DEFAULT Divers2}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc03] TEXT(128) DEFAULT Divers3}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc04] TEXT(128) DEFAULT Divers4}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc05] TEXT(128) DEFAULT Divers5}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc06] TEXT(128) DEFAULT Divers6}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc07] TEXT(128) DEFAULT Divers7}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc08] TEXT(128) DEFAULT Divers8}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc09] TEXT(128) DEFAULT Divers9}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc10] TEXT(128) DEFAULT Divers10}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc11] TEXT(128) DEFAULT Divers11}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Address_Misc12] TEXT(128) DEFAULT Divers12}
End
NotIndexExist(ADDRESS_Id_File)
SqlExe{CREATE INDEX [ADDRESS_Id_File] ON [ADDRESS] ([Id_File])}
End
//CrΘation de la table "ADDRESSEVENTS"
NotTableExist(ADDRESSEVENTS)
SqlExe{CREATE TABLE [ADDRESSEVENTS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Address] INTEGER, [Id_Event] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [EventDate] DATETIME, [Title] TEXT(256), [Comment] MEMO, [Alarm] BOOLEAN, [Diary] BOOLEAN)}
End
NotIndexExist(ADDRESSEVENTS_Id_Address)
SqlExe{CREATE INDEX [ADDRESSEVENTS_Id_Address] ON [ADDRESSEVENTS] ([Id_Address])}
End
NotIndexExist(ADDRESSEVENTS_Id_Event)
SqlExe{CREATE INDEX [ADDRESSEVENTS_Id_Event] ON [ADDRESSEVENTS] ([Id_Event])}
End
NotIndexExist(ADDRESSEVENTS_Id_File)
SqlExe{CREATE INDEX [ADDRESSEVENTS_Id_File] ON [ADDRESSEVENTS] ([Id_File])}
End
//CrΘation de la table "ADDRESSEVENTSLIST"
NotTableExist(ADDRESSEVENTSLIST)
SqlExe{CREATE TABLE [ADDRESSEVENTSLIST] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Title] TEXT(128), [Comment] MEMO, [Img] BINARY, [Locked] BOOLEAN)}
End
NotIndexExist(ADDRESSEVENTSLIST_Id_File)
SqlExe{CREATE INDEX [ADDRESSEVENTSLIST_Id_File] ON [ADDRESSEVENTSLIST] ([Id_File])}
End
//CrΘation de la table "ADDRESSGROUPS"
NotTableExist(ADDRESSGROUPS)
SqlExe{CREATE TABLE [ADDRESSGROUPS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Address] INTEGER, [Id_Group] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Comment] MEMO)}
End
NotIndexExist(ADDRESSGROUPS_Id_File)
SqlExe{CREATE INDEX [ADDRESSGROUPS_Id_File] ON "ADDRESSGROUPS" ([Id_File])}
End
NotIndexExist(ADDRESSGROUPS_Id_Address)
SqlExe{CREATE INDEX [ADDRESSGROUPS_Id_Address] ON "ADDRESSGROUPS" ([Id_Address])}
End
NotIndexExist(ADDRESSGROUPS_Id_Group)
SqlExe{CREATE INDEX [ADDRESSGROUPS_Id_Group] ON "ADDRESSGROUPS" ([Id_Group])}
End
//CrΘation de la table "ADDRESSGROUPSLIST"
NotTableExist(ADDRESSGROUPSLIST)
SqlExe{CREATE TABLE [ADDRESSGROUPSLIST] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Title] TEXT(128), [Comment] MEMO, [Img] BINARY, [Locked] BOOLEAN)}
End
NotIndexExist(ADDRESSGROUPSLIST_Id_File)
SqlExe{CREATE INDEX [ADDRESSGROUPSLIST_Id_File] ON [ADDRESSGROUPSLIST] ([Id_File])}
End
//CrΘation de la table "ADDRESSLABELCONFIG"
NotTableExist(ADDRESSLABELCONFIG)
SqlExe{CREATE TABLE [ADDRESSLABELCONFIG] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Mask] MEMO, [Landscape] BOOLEAN, [PageSize] TEXT(128), [PageHeight] FLOAT, [PageWidth] FLOAT, [PageLeftMargin] FLOAT, [PageRightMargin] FLOAT, [PageTopMargin] FLOAT, [PageBottomMargin] FLOAT, [ColumnsCount] INTEGER, [RowsCount] INTEGER, [LabelLeftMargin] FLOAT, [LabelRightMargin] FLOAT, [LabelTopMargin] FLOAT, [LabelBottomMargin] FLOAT, [FirstLabelPosition] INTEGER)}
End
NotIndexExist(ADDRESSLABELCONFIG_Id_File)
SqlExe{CREATE INDEX [ADDRESSLABELCONFIG_Id_File] ON [ADDRESSLABELCONFIG] ([Id_File])}
End
//Ajout du champ "City" pour gΘrer la liste des villes
NotFieldExist(COMBOITEMS.City)
SqlExe{ALTER TABLE [COMBOITEMS] ADD [City] MEMO}
End
//Ajout du champ "Country" pour gΘrer la liste des pays
NotFieldExist(COMBOITEMS.Country)
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Country] MEMO}
End
//Ajout du champ "Civility" pour gΘrer la liste des civilitΘs
NotFieldExist(COMBOITEMS.Civility)
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Civility] MEMO}
End
// ------------------------------------------------------------------------------------------------------------------------
// AGENDA (10/2013)
// ------------------------------------------------------------------------------------------------------------------------
//CrΘation de la table "AGENDA"
NotTableExist(AGENDA)
SqlExe{CREATE TABLE [AGENDA] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Event] INTEGER, [Id_Category] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [StartDate] DATETIME, [EndDate] DATETIME, [Title] TEXT(256), [Comment] MEMO, [Diary] BOOLEAN, [Priority] INTEGER, [Alarm_Active] BOOLEAN, [Alarm_AtTime] BOOLEAN, [Alarm_Value] INTEGER, [Alarm_Unit] INTEGER, [Alarm_Date] DATETIME, [Repeat_Active] BOOLEAN, [Repeat_Date] DATETIME, [Repeat_Value] INTEGER, [Repeat_Unit] INTEGER, [Locked] BOOLEAN, [Misc01] TEXT(128), [Misc02] TEXT(128), [Misc03] TEXT(128), [Misc04] TEXT(128), [Misc05] TEXT(128), [Misc06] TEXT(128), [Misc07] TEXT(128), [Misc08] TEXT(128), [Misc09] TEXT(128), [Misc10] TEXT(128), [Misc11] MEMO, [Misc12] MEMO)}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_EventTitle] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc01] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc02] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc03] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc04] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc05] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc06] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc07] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc08] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc09] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Agenda_Misc10] MEMO}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc01] TEXT(128) DEFAULT Divers1}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc02] TEXT(128) DEFAULT Divers2}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc03] TEXT(128) DEFAULT Divers3}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc04] TEXT(128) DEFAULT Divers4}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc05] TEXT(128) DEFAULT Divers5}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc06] TEXT(128) DEFAULT Divers6}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc07] TEXT(128) DEFAULT Divers7}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc08] TEXT(128) DEFAULT Divers8}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc09] TEXT(128) DEFAULT Divers9}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc10] TEXT(128) DEFAULT Divers10}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc11] TEXT(128) DEFAULT Divers11}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Agenda_Misc12] TEXT(128) DEFAULT Divers12}
End
NotIndexExist(AGENDA_Id_File)
SqlExe{CREATE INDEX [AGENDA_Id_File] ON [AGENDA] ([Id_File])}
End
//CrΘation de la table "AGENDACATEGORIESLIST"
NotTableExist(AGENDACATEGORIESLIST)
SqlExe{CREATE TABLE [AGENDACATEGORIESLIST] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Title] TEXT(128), [Comment] MEMO, [Img] BINARY, [TextColor] TEXT(128), [BackgroundColor] TEXT(128), [Locked] BOOLEAN)}
End
NotIndexExist(AGENDACATEGORIESLIST_Id_File)
SqlExe{CREATE INDEX [AGENDACATEGORIESLIST_Id_File] ON [AGENDACATEGORIESLIST] ([Id_File])}
End
//CrΘation de la table "AGENDAINFOSDAYS"
NotTableExist(AGENDAINFOSDAYS)
SqlExe{CREATE TABLE [AGENDAINFOSDAYS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Day] INTEGER, [Month] INTEGER, [Title] TEXT(256), [Comment] MEMO)}
End
NotIndexExist(INFOSDAYS_Id_File)
SqlExe{CREATE INDEX [INFOSDAYS_Id_File] ON [AGENDAINFOSDAYS] ([Id_File])}
End
//CrΘation de la table "AGENDAPUBLICHOLIDAYS"
NotTableExist(AGENDAPUBLICHOLIDAYS)
SqlExe{CREATE TABLE [AGENDAPUBLICHOLIDAYS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Day] INTEGER, [Month] INTEGER, [Title] TEXT(256), [Comment] MEMO)}
End
NotIndexExist(PUBLICHOLIDAYS_Id_File)
SqlExe{CREATE INDEX [PUBLICHOLIDAYS_Id_File] ON [AGENDAPUBLICHOLIDAYS] ([Id_File])}
End
//CrΘation de la table "AGENDASAINTSDAYS"
NotTableExist(AGENDASAINTSDAYS)
SqlExe{CREATE TABLE [AGENDASAINTSDAYS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Day] INTEGER, [Month] INTEGER, [Title] TEXT(256), [Comment] MEMO)}
End
NotIndexExist(SAINTSDAYS_Id_File)
SqlExe{CREATE INDEX [SAINTSDAYS_Id_File] ON [AGENDASAINTSDAYS] ([Id_File])}
End
// ----------------------------------------
// COMPTES BANQUE (10/2013)
// ----------------------------------------
//CrΘation de la table "BANKACCOUNT"
NotTableExist(BANKACCOUNT)
SqlExe{CREATE TABLE [BANKACCOUNT] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [BankTitle] TEXT(255), [BankName] TEXT(255), [BankAddress] MEMO, [BankCode] TEXT(255), [BankDesk] TEXT(255), [BankAccountNo] TEXT(255), [BankRIB] TEXT(255), [BankBIC] TEXT(255), [BankIBANCountryCode] TEXT(255), [HolderName] TEXT(255), [HolderAddress] MEMO, [OpenDate] DATETIME, [CloseDate] DATETIME, [NextCheckNumber] TEXT(255), [Comment] MEMO, [Pos] INTEGER, [Img] BINARY, [Misc01] TEXT(255), [Misc02] TEXT(255), [Misc03] TEXT(255), [Misc04] TEXT(255), [Misc05] TEXT(255), [Misc06] TEXT(255), [Misc07] TEXT(255), [Misc08] TEXT(255), [Misc09] TEXT(255), [Misc10] TEXT(255), [Misc11] MEMO, [Misc12] MEMO, [Tag] TEXT(255), [EstimatedDate] DATETIME, [EnableToCheck] BOOLEAN, [EnableCreditOrder] BOOLEAN, [EnableDebitOrder] BOOLEAN, [EnableSchedule] BOOLEAN, [Year] INTEGER)}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankName] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankTitle] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankIBANCountryCode] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc01] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc02] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc03] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc04] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc05] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc06] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc07] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc08] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc09] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankAccount_Misc10] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperationTitle] MEMO}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc01] TEXT(128) DEFAULT Divers1}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc02] TEXT(128) DEFAULT Divers2}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc03] TEXT(128) DEFAULT Divers3}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc04] TEXT(128) DEFAULT Divers4}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc05] TEXT(128) DEFAULT Divers5}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc06] TEXT(128) DEFAULT Divers6}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc07] TEXT(128) DEFAULT Divers7}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc08] TEXT(128) DEFAULT Divers8}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc09] TEXT(128) DEFAULT Divers9}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc10] TEXT(128) DEFAULT Divers10}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc11] TEXT(128) DEFAULT Divers11}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankAccount_Misc12] TEXT(128) DEFAULT Divers12}
End
NotIndexExist(BANKACCOUNT_Id_File)
SqlExe{CREATE INDEX [BANKACCOUNT_Id_File] ON [BANKACCOUNT] ([Id_File])}
End
//CrΘation de la table "BANKITEM"
NotTableExist(BANKITEM)
SqlExe{CREATE TABLE [BANKITEM] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Item] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [ItemType] INTEGER, [Title] TEXT(255), [Level] INTEGER, [Pos] INTEGER, [Comment] MEMO)}
End
NotIndexExist(BANKITEM_Id_File)
SqlExe{CREATE INDEX [BANKITEM_Id_File] ON [BANKITEM] ([Id_File])}
End
NotIndexExist(BANKITEM_Id_Item)
SqlExe{CREATE INDEX [BANKITEM_Id_Item] ON [BANKITEM] ([Id_Item])}
End
//CrΘation de la table "BANKITEMBUDGET"
NotTableExist(BANKITEMBUDGET)
SqlExe{CREATE TABLE [BANKITEMBUDGET] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Item] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [BudgetYear] INTEGER, [BudgetValue] FLOAT, [Comment] MEMO)}
End
NotIndexExist(BANKITEMBUDGET_Id_File)
SqlExe{CREATE INDEX [BANKITEMBUDGET_Id_File] ON [BANKITEMBUDGET] ([Id_File])}
End
NotIndexExist(BANKITEMBUDGET_Id_Item)
SqlExe{CREATE INDEX [BANKITEMBUDGET_Id_Item] ON [BANKITEMBUDGET] ([Id_Item])}
End
//CrΘation de la table "BANKOPERATION"
NotTableExist(BANKOPERATION)
SqlExe{CREATE TABLE [BANKOPERATION] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Bank] INTEGER, [Id_Order] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Balance] BOOLEAN, [OperationTitle] TEXT(255), [OperationDate] DATETIME, [OperationType] TEXT(255), [OperationRef] TEXT(255), [OperationAmount] FLOAT, [Checked] BOOLEAN, [CheckedDate] DATETIME, [Comment] MEMO, [Tag] TEXT(255), [Misc01] TEXT(255), [Misc02] TEXT(255), [Misc03] TEXT(255), [Misc04] TEXT(255), [Misc05] TEXT(255), [Misc06] TEXT(255), [Misc07] TEXT(255), [Misc08] TEXT(255), [Misc09] TEXT(255), [Misc10] TEXT(255), [Misc11] MEMO, [Misc12] MEMO)}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperationRef] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperationType] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc01] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc02] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc03] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc04] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc05] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc06] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc07] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc08] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc09] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOperation_Misc10] MEMO}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc01] TEXT(128) DEFAULT Divers1}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc02] TEXT(128) DEFAULT Divers2}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc03] TEXT(128) DEFAULT Divers3}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc04] TEXT(128) DEFAULT Divers4}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc05] TEXT(128) DEFAULT Divers5}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc06] TEXT(128) DEFAULT Divers6}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc07] TEXT(128) DEFAULT Divers7}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc08] TEXT(128) DEFAULT Divers8}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc09] TEXT(128) DEFAULT Divers9}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc10] TEXT(128) DEFAULT Divers10}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc11] TEXT(128) DEFAULT Divers11}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [BankOperation_Misc12] TEXT(128) DEFAULT Divers12}
End
NotIndexExist(BANKOPERATION_Balance)
SqlExe{CREATE INDEX [BANKOPERATION_Balance] ON [BANKOPERATION] ([Balance])}
End
NotIndexExist(BANKOPERATION_Checked)
SqlExe{CREATE INDEX [BANKOPERATION_Checked] ON [BANKOPERATION] ([Checked])}
End
NotIndexExist(BANKOPERATION_CheckedDate)
SqlExe{CREATE INDEX [BANKOPERATION_CheckedDate] ON [BANKOPERATION] ([CheckedDate])}
End
NotIndexExist(BANKOPERATION_Id_Bank)
SqlExe{CREATE INDEX [BANKOPERATION_Id_Bank] ON [BANKOPERATION] ([Id_Bank])}
End
NotIndexExist(BANKOPERATION_Id_File)
SqlExe{CREATE INDEX [BANKOPERATION_Id_File] ON [BANKOPERATION] ([Id_File])}
End
NotIndexExist(BANKOPERATION_Id_Order)
SqlExe{CREATE INDEX [BANKOPERATION_Id_Order] ON [BANKOPERATION] ([Id_Order])}
End
NotIndexExist(BANKOPERATION_OperationAmount)
SqlExe{CREATE INDEX [BANKOPERATION_OperationAmount] ON [BANKOPERATION] ([OperationAmount])}
End
NotIndexExist(BANKOPERATION_OperationDate)
SqlExe{CREATE INDEX [BANKOPERATION_OperationDate] ON [BANKOPERATION] ([OperationDate])}
End
NotIndexExist(BANKOPERATION_OperationRef)
SqlExe{CREATE INDEX [BANKOPERATION_OperationRef] ON [BANKOPERATION] ([OperationRef])}
End
NotIndexExist(BANKOPERATION_OperationTitle)
SqlExe{CREATE INDEX [BANKOPERATION_OperationTitle] ON [BANKOPERATION] ([OperationTitle])}
End
NotIndexExist(BANKOPERATION_OperationType)
SqlExe{CREATE INDEX [BANKOPERATION_OperationType] ON [BANKOPERATION] ([OperationType])}
End
//CrΘation de la table "BANKOPERATIONFILTER"
NotTableExist(BANKOPERATIONFILTER)
SqlExe{CREATE TABLE [BANKOPERATIONFILTER] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Bank] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [FilterYear] INTEGER, [OperationDate] BOOLEAN, [OperationDateBegin] DATETIME, [OperationDateEnd] DATETIME, [OperationCheckedDate] BOOLEAN, [OperationCheckedDateBegin] DATETIME, [OperationCheckedDateEnd] DATETIME, [OperationTitle] TEXT(255), [OperationReference] TEXT(255), [OperationType] TEXT(255), [OperationItemId] INTEGER, [OperationAmount] BOOLEAN, [OperationMinAmount] FLOAT, [OperationMaxAmount] FLOAT, [OperationState] INTEGER)}
End
NotIndexExist(BANKOPERATIONFILTER_Id_File)
SqlExe{CREATE INDEX [BANKOPERATIONFILTER_Id_File] ON [BANKOPERATIONFILTER] ([Id_File])}
End
NotIndexExist(BANKOPERATIONFILTER_Id_Bank)
SqlExe{CREATE INDEX [BANKOPERATIONFILTER_Id_Bank] ON [BANKOPERATIONFILTER] ([Id_Bank])}
End
NotIndexExist(BANKOPERATIONFILTER_FilterYear)
SqlExe{CREATE INDEX [BANKOPERATIONFILTER_FilterYear] ON [BANKOPERATIONFILTER] ([FilterYear])}
End
//CrΘation de la table "BANKOPERATIONITEM"
NotTableExist(BANKOPERATIONITEM)
SqlExe{CREATE TABLE [BANKOPERATIONITEM] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Operation] INTEGER, [Id_Item] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Amount] FLOAT)}
End
NotIndexExist(BANKOPERATIONITEM_Id_File)
SqlExe{CREATE INDEX [BANKOPERATIONITEM_Id_File] ON [BANKOPERATIONITEM] ([Id_File])}
End
NotIndexExist(BANKOPERATIONITEM_Id_Item)
SqlExe{CREATE INDEX [BANKOPERATIONITEM_Id_Item] ON [BANKOPERATIONITEM] ([Id_Item])}
End
NotIndexExist(BANKOPERATIONITEM_Id_Operation)
SqlExe{CREATE INDEX [BANKOPERATIONITEM_Id_Operation] ON [BANKOPERATIONITEM] ([Id_Operation])}
End
//CrΘation de la table "BANKORDER"
NotTableExist(BANKORDER)
SqlExe{CREATE TABLE [BANKORDER] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Bank] INTEGER, [Id_Item] INTEGER, [Id_Order] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [OrderType] INTEGER, [Title] TEXT(255), [OrderReference] TEXT(255), [Amount] FLOAT, [BeginDate] DATETIME, [EndDate] DATETIME, [MonthFrequency] INTEGER, [TermDay] INTEGER, [OperationChecked] BOOLEAN, [Comment] MEMO, [Misc01] TEXT(255), [Misc02] TEXT(255), [Misc03] TEXT(255), [Misc04] TEXT(255), [Misc05] TEXT(255), [Misc06] TEXT(255), [Misc07] TEXT(255), [Misc08] TEXT(255), [Misc09] TEXT(255), [Misc10] TEXT(255), [Misc11] MEMO, [Misc12] TEXT)}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOrderRef] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [BankOrderTitle] MEMO}
End
NotIndexExist(BANKORDER_Id_Bank)
SqlExe{CREATE INDEX [BANKORDER_Id_Bank] ON [BANKORDER] ([Id_Bank])}
End
NotIndexExist(BANKORDER_Id_File)
SqlExe{CREATE INDEX [BANKORDER_Id_File] ON [BANKORDER] ([Id_File])}
End
NotIndexExist(BANKORDER_Id_Item)
SqlExe{CREATE INDEX [BANKORDER_Id_Item] ON [BANKORDER] ([Id_Item])}
End
NotIndexExist(BANKORDER_Id_Order)
SqlExe{CREATE INDEX [BANKORDER_Id_Order] ON [BANKORDER] ([Id_Order])}
End
//CrΘation de la table "BANKSCHEDULE"
NotTableExist(BANKSCHEDULE)
SqlExe{CREATE TABLE [BANKSCHEDULE] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Bank] INTEGER, [Id_Item] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [OperationDate] DATETIME, [OperationTitle] TEXT(255), [OperationRef] TEXT(255), [OperationAmount] FLOAT, [OperationType] TEXT(255), [OperationChecked] BOOLEAN, [Completed] BOOLEAN, [Automatic] BOOLEAN, [AlarmDays] INTEGER, [Comment] MEMO, [Misc01] TEXT(255), [Misc02] TEXT(255), [Misc03] TEXT(255), [Misc04] TEXT(255), [Misc05] TEXT(255), [Misc06] TEXT(255), [Misc07] TEXT(255), [Misc08] TEXT(255), [Misc09] TEXT(255), [Misc10] TEXT(255), [Misc11] MEMO, [Misc12] MEMO)}
End
NotIndexExist(BANKSCHEDULE_Id_Bank)
SqlExe{CREATE INDEX [BANKSCHEDULE_Id_Bank] ON [BANKSCHEDULE] ([Id_Bank])}
End
NotIndexExist(BANKSCHEDULE_Id_File)
SqlExe{CREATE INDEX [BANKSCHEDULE_Id_File] ON [BANKSCHEDULE] ([Id_File])}
End
NotIndexExist(BANKSCHEDULE_Id_Item)
SqlExe{CREATE INDEX [BANKSCHEDULE_Id_Item] ON [BANKSCHEDULE] ([Id_Item])}
End
// ----------------------------------------
// AJUSTEMENT (08/2014)
// ----------------------------------------
//Suppression des tables pour les anciennes bases de donnΘes
NotTableExist(NOTES)
SqlExe{DROP TABLE PLANNING}
SqlExe{DROP TABLE PLANNINGPROJECTSLIST}
SqlExe{DROP TABLE TASKS}
End
// ----------------------------------------
// PLANNING (08/2014)
// ----------------------------------------
//CrΘation de la table "PLANNING"
//NotTableExist(PLANNING)
// SqlExe{CREATE TABLE [PLANNING] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Project] INTEGER, [Id_Ref] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [StartDate] DATETIME, [EndDate] DATETIME, [Title] TEXT(256), [Comment] MEMO, [Morning] BOOLEAN, [Afternoon] BOOLEAN, [Priority] INTEGER, [Locked] BOOLEAN, [Misc01] TEXT(128), [Misc02] TEXT(128), [Misc03] TEXT(128), [Misc04] TEXT(128), [Misc05] TEXT(128), [Misc06] TEXT(128), [Misc07] TEXT(128), [Misc08] TEXT(128), [Misc09] TEXT(128), [Misc10] TEXT(128), [Misc11] MEMO, [Misc12] MEMO)}
//End
//NotIndexExist(PLANNING_Id_File)
// SqlExe{CREATE INDEX [PLANNING_Id_File] ON [PLANNING] ([Id_File])}
//End
//NotIndexExist(PLANNING_StartDate)
// SqlExe{CREATE INDEX [PLANNING_StartDate] ON [PLANNING] ([StartDate])}
//End
//NotIndexExist(PLANNING_EndDate)
// SqlExe{CREATE INDEX [PLANNING_EndDate] ON [PLANNING] ([EndDate])}
//End
//CrΘation de la table "PLANNINGPROJECTSLIST"
NotTableExist(PLANNINGPROJECTSLIST)
SqlExe{CREATE TABLE [PLANNINGPROJECTSLIST] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Title] TEXT(256), [Color] TEXT(128), [Years] MEMO, [Comment] MEMO)}
End
NotIndexExist(PLANNINGPROJECTSLIST_Id_File)
SqlExe{CREATE INDEX [PLANNINGPROJECTSLIST_Id_File] ON [PLANNINGPROJECTSLIST] ([Id_File])}
End
//CrΘation de la table "PLANNINGANNUAL"
NotTableExist(PLANNINGANNUAL)
SqlExe{CREATE TABLE [PLANNINGANNUAL] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Id_Project_Morning] INTEGER, [Id_Project_Afternoon] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [PlanningDate] DATETIME)}
End
NotIndexExist(PLANNINGANNUAL_Id_File)
SqlExe{CREATE INDEX [PLANNINGANNUAL_Id_File] ON [PLANNINGANNUAL] ([Id_File])}
End
NotIndexExist(PLANNINGANNUAL_Id_Project_Afternoon)
SqlExe{CREATE INDEX [PLANNINGANNUAL_Id_Project_Afternoon] ON [PLANNINGANNUAL] ([Id_Project_Afternoon])}
End
NotIndexExist(PLANNINGANNUAL_Id_Project_Morning)
SqlExe{CREATE INDEX [PLANNINGANNUAL_Id_Project_Morning] ON [PLANNINGANNUAL] ([Id_Project_Morning])}
End
NotIndexExist(PLANNINGANNUAL_PlanningDate)
SqlExe{CREATE INDEX [PLANNINGANNUAL_PlanningDate] ON [PLANNINGANNUAL] ([PlanningDate])}
End
// ----------------------------------------
// TACHES (08/2014)
// ----------------------------------------
NotTableExist(TASKS)
SqlExe{CREATE TABLE [TASKS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [Title] TEXT(256), [TermDate] DATETIME, [Category] TEXT(256), [PriorityLevel] INTEGER, [Closed] BOOLEAN, [ClosedDate] DATETIME, [InProgress] BOOLEAN, [Progress] INTEGER, [BeginDate] DATETIME, [EndDate] DATETIME, [Description] MEMO, [Alarm_Date] DATETIME, [Alarm_Value] INTEGER, [Alarm_AtDate] BOOLEAN, [Alarm_Active] BOOLEAN, [Misc01] TEXT(128), [Misc02] TEXT(128), [Misc03] TEXT(128), [Misc04] TEXT(128), [Misc05] TEXT(128), [Misc06] TEXT(128), [Misc07] TEXT(128), [Misc08] TEXT(128), [Misc09] TEXT(128), [Misc10] TEXT(128), [Misc11] MEMO, [Misc12] MEMO)}
//Ajouter les Champs Personalmisatbles
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Title] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Category] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc01] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc02] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc03] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc04] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc05] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc06] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc07] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc08] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc09] MEMO}
SqlExe{ALTER TABLE [COMBOITEMS] ADD [Tasks_Misc10] MEMO}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc01] TEXT(128) DEFAULT Divers1}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc02] TEXT(128) DEFAULT Divers2}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc03] TEXT(128) DEFAULT Divers3}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc04] TEXT(128) DEFAULT Divers4}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc05] TEXT(128) DEFAULT Divers5}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc06] TEXT(128) DEFAULT Divers6}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc07] TEXT(128) DEFAULT Divers7}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc08] TEXT(128) DEFAULT Divers8}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc09] TEXT(128) DEFAULT Divers9}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc10] TEXT(128) DEFAULT Divers10}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc11] TEXT(128) DEFAULT Divers11}
SqlExe{ALTER TABLE [CUSTOMLAB] ADD [Tasks_Misc12] TEXT(128) DEFAULT Divers12}
End
NotIndexExist(TASKS_Id_File)
SqlExe{CREATE INDEX [TASKS_Id_File] ON [TASKS] ([Id_File])}
End
NotIndexExist(TASKS_TermDate)
SqlExe{CREATE INDEX [TASKS_TermDate] ON [TASKS] ([TermDate])}
End
NotIndexExist(TASKS_PriorityLevel)
SqlExe{CREATE INDEX [TASKS_PriorityLevel] ON [TASKS] ([PriorityLevel])}
End
// ----------------------------------------
// DOCUMENTS (08/2014)
// ----------------------------------------
NotTableExist(GEDTREE)
SqlExe{CREATE TABLE [GEDTREE] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [NodeTitle] TEXT(128), [NodeLevel] INTEGER, [NodeIndex] INTEGER, [NodePos] INTEGER, [NodeImageIndex] INTEGER, [NodeImg] BINARY, [NodeFullPath] TEXT(255))}
End
// ----------------------------------------
// PHOTOS (08/2014)
// ----------------------------------------
NotTableExist(PHOTOS)
SqlExe{CREATE TABLE [PHOTOS] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [OrderPos] INTEGER, [Page] INTEGER, [Image] BINARY, [ImageRatio] FLOAT, [ImageHeight] INTEGER, [ImageWidth] INTEGER, [ImageScreenX] INTEGER, [ImageScreenY] INTEGER, [ImageScreenWidth] INTEGER, [ImageScreenHeight] INTEGER, [Text] TEXT(256), [TextAlignment] INTEGER, [TextPosition] INTEGER, [TextFont] TEXT(256), [TextColor] TEXT(256), [Locked] BOOLEAN)}
End
NotIndexExist(PHOTOS_Id_File)
SqlExe{CREATE INDEX [PHOTOS_Id_File] ON [PHOTOS] ([Id_File])}
End
NotIndexExist(PHOTOS_OrderPos)
SqlExe{CREATE INDEX [PHOTOS_OrderPos] ON [PHOTOS] ([OrderPos])}
End
NotIndexExist(PHOTOS_Page)
SqlExe{CREATE INDEX [PHOTOS_Page] ON [PHOTOS] ([Page])}
End
// ----------------------------------------
// NOTES (08/2014)
// ----------------------------------------
NotTableExist(NOTES)
SqlExe{CREATE TABLE [NOTES] ([Id] INTEGER PRIMARY KEY AUTOINCREMENT, [Id_File] INTEGER, [Add_Date] DATETIME, [Mod_Date] DATETIME, [OrderPos] INTEGER, [Page] INTEGER, [Text] MEMO, [ScreenX] INTEGER, [ScreenY] INTEGER, [ScreenWidth] INTEGER, [ScreenHeight] INTEGER, [Locked] BOOLEAN, [BackgroundIndex] INTEGER, [PinIndex] INTEGER)}
End
NotIndexExist(NOTES_Id_File)
SqlExe{CREATE INDEX [NOTES_Id_File] ON [NOTES] ([Id_File])}
End
NotIndexExist(NOTES_OrderPos)
SqlExe{CREATE INDEX [NOTES_OrderPos] ON [NOTES] ([OrderPos])}
End
NotIndexExist(NOTES_Page)
SqlExe{CREATE INDEX [NOTES_Page] ON [NOTES] ([Page])}
End